package com.ytc.teaching.controller;

import com.ytc.commons.model.dto.CommentReplyDto;
import com.ytc.commons.model.vo.ResponseResult;
import com.ytc.teaching.service.CommentReplyService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author jiye
 */
@Slf4j
@RestController
@RequestMapping("/course-comment-reply")
public class CommentReplyController {

    @Autowired
    private CommentReplyService commentReplyService;

    /**
     * 教育机构---课程评论回复
     * @param dto
     * @return
     */
    @PostMapping
    public ResponseResult courseCommentReply(@RequestBody(required = false)CommentReplyDto dto){
        return  commentReplyService.courseCommentReply(dto);
    }

}
